﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace SimplePlanner.Logic
{
    public class FileService
    {
        public static void OutputStringToFile(string text, string path)
        {
            if (Directory.Exists(path))
            {
                File.Delete(path);
            }

            StreamWriter sw = new StreamWriter(path, true);
            sw.Write(text);
            sw.Close();
        }
    }
}
